package com.sg.dto.biz.bff.common;


import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffCycleConfDto
 * @使用场景
 */
@Data
public class BffCycleConfDto extends PagedDto implements Serializable {

    /**
     * 周期配置ID:
     */
    @ApiModelProperty("周期配置ID")
    private String cycleConfId;

    /**
     * 周期配置名称:
     */
    @ApiModelProperty("周期配置名称")
    private String cycleConfName;

    /**
     * 周期配置标识:
     */
    @ApiModelProperty("周期配置标识")
    private String cycleConfCode;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 个人资料记录ID:
     */
    @ApiModelProperty("个人资料记录ID")
    private String personalDataId;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCycleConfDto that = (BffCycleConfDto) o;
        return cycleConfId == that.cycleConfId && cycleConfName == that.cycleConfName && cycleConfCode == that.cycleConfCode && subjectLifeCycle == that.subjectLifeCycle && operateTime == that.operateTime && idCardName == that.idCardName && nickName == that.nickName && userFace == that.userFace && personalDataId == that.personalDataId && operationInductionId == that.operationInductionId && isArchive == that.isArchive;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleConfId, cycleConfName, cycleConfCode, subjectLifeCycle, operateTime, idCardName, nickName, userFace, personalDataId, operationInductionId, isArchive);
    }

}
